package com.ayz.gateway.common.request;


import com.ayz.gateway.common.constants.ApplicationConfigWrapper;
import lombok.Data;

/**
 * @ClassName RegistryApplicationRequest
 * @Description TODO: 向网关注册中心注册微服务配置信息的请求
 * @Author 快乐的星球
 * @Date 2023/5/13 18:44
 * @Version 1.0
 **/
@Data
public class RegistryApplicationRequest {
    /**
     * 服务的地址
     */
    private String address;
    /**
     * 微服务的名称
     */
    private String applicationName;
    /**
     * 向网关注册的配置信息
     */
    private ApplicationConfigWrapper configWrapper;
    /**
     * 网关组的名称
     */
    private String gatewayGroup;

    public RegistryApplicationRequest(String address, String applicationName, ApplicationConfigWrapper configWrapper) {
        this.address = address;
        this.applicationName = applicationName;
        this.configWrapper = configWrapper;
    }

    public RegistryApplicationRequest(String address, String applicationName, ApplicationConfigWrapper configWrapper, String gatewayGroup) {
        this.address = address;
        this.applicationName = applicationName;
        this.configWrapper = configWrapper;
        this.gatewayGroup = gatewayGroup;
    }

    public RegistryApplicationRequest() {
    }
}
